package com.heatup.apt.management.service.impl;

import com.baomidou.framework.service.impl.SuperServiceImpl;
import com.heatup.apt.common.dao.SmsLogMapper;
import com.heatup.apt.management.service.SmslogService;
import com.heatup.apt.model.SmsLog;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;

@Service
public class SmslogServiceImpl extends SuperServiceImpl<SmsLogMapper, SmsLog> implements SmslogService {

    @Resource
    private SmsLogMapper smsLogMapper;

    /**
     * 分页查询短信发送记录
     *
     * @param paramsMap
     * @return
     */
    @Override
    public Map<String, Object> selectSmsLogPage( Map<String, Object> paramsMap) {
        Map<String, Object> resultMap = new HashMap<>();

        resultMap.put("count", smsLogMapper.queryPageCount(paramsMap));
        resultMap.put("list", smsLogMapper.queryPage(paramsMap));
        return resultMap;
    }
}
